package com.teaching.management.repository;

import com.teaching.management.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
    User findByUsernameAndPasswordAndRole(String username, String password, String role);

    User findByUsername(String username);
}